home *** CD-ROM | disk | FTP | other *** search
/ Immoral Angel 1 / Immoral Angel 1.iso / pc / program / actress.dxr / 00040.ls < prev    next >
Encoding:
Text File  |  1997-07-11  |  794 b   |  30 lines

  1. on checkname
  2.   global personalnum
  3.   set personalnum to 0
  4.   set mh to mouseH() - 20
  5.   set mv to mouseV() - 102
  6.   set yoko to (mh / 68) + 1
  7.   set tate to mv / 68
  8.   set personalnum to yoko + (tate * 3)
  9.   if (yoko < 1) or (yoko > 3) or (tate < 0) or (tate > 3) then
  10.     exit
  11.   end if
  12.   rollovername(personalnum, yoko, tate)
  13. end
  14.  
  15. on rollovername personalnum, yoko, tate
  16.   if personalnum = 0 then
  17.     exit
  18.   end if
  19.   puppetSprite(4, 1)
  20.   set the type of sprite 4 to 1
  21.   set the ink of sprite 4 to 0
  22.   set the foreColor of sprite 4 to 255
  23.   set the backColor of sprite 4 to 0
  24.   set facephoto to "face" & personalnum
  25.   set the castNum of sprite 4 to the number of member facephoto
  26.   set the locH of sprite 4 to ((yoko - 1) * 68) + 19
  27.   set the locV of sprite 4 to (tate * 68) + 101
  28.   updateStage()
  29. end
  30.